package com.wyz.saas.app.mvvm.account

import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.lifecycle.ViewModelProvider
import com.wyz.saas.app.R
import com.wyz.saas.app.databinding.FragmentAccountLoginBinding
import com.wyz.saas.app.mvvm.AppViewModelFactory
import com.wyz.saas.common.base.AbstractApiFragment

class LoginFragment : AbstractApiFragment<FragmentAccountLoginBinding, AccountViewModel>() {

    override fun initContentView(
        inflater: LayoutInflater?,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): Int = R.layout.fragment_account_login

    override fun initViewModel(): AccountViewModel {
        return ViewModelProvider(
            this.requireActivity(),
            AppViewModelFactory
        ).get(AccountViewModel::class.java)
    }

}